# -*- coding: utf-8 -*-
'''
@author: Hugo
@file: demo.py
@time: 2021/8/15 15:22
'''
import requests

cookies = {
    'XSRF-TOKEN': 'eyJpdiI6IjgzRHl2M0NUdW1jam10MzZYZkhMUVE9PSIsInZhbHVlIjoiSFZCTFdDYWlDSmJrRU1UeVY2SWlPYWFjaDdtT3B0V1BWaXprQm5KXC9UY3NIcWZMYXlLODNBSTJFODZzQUp3OTYiLCJtYWMiOiIwNWEzNDE1M2I0Njc4MDdiZDIzOWU0ZDdkYzQzMjdlNGVmZDkxNjk0OWU4NDIyM2IzYjI5ZTBmMDg2ODM1N2QzIn0%3D',
    'szxx_session': 'eyJpdiI6IllqS1FFejBZVE9USm9OK1pCS2FWQ0E9PSIsInZhbHVlIjoiVFBEaHlPU1wvQTJUWERFTTFkWHdqYWVYNWJxM3kyUWtIXC9BRFJlUkFyYTdIVWhoUXN0WlNveFhPZ2luUnFVSzJlIiwibWFjIjoiYzM4NmZiZTZhYWMwYzI5NTJkZTlhMTcxZWUxYzgxNjkwM2JjMzdiM2ZlMTQ3YmFkZWQ3Y2YwM2EzZjUyZjZjYiJ9',
}

headers = {
    'Connection': 'keep-alive',
    'Accept': 'application/json, text/plain, */*',
    'X-CSRF-TOKEN': 'vVnsMuw8FuUKgVhWucQjFocWABNFIn7thYVmGlhE',
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36',
    'Content-Type': 'application/x-www-form-urlencoded',
    'Origin': 'http://www.zjmazhang.gov.cn',
    'Referer': 'http://www.zjmazhang.gov.cn/hdjlpt/published?via=pc',
    'Accept-Language': 'zh-CN,zh;q=0.9',
}

data = {
  'offset': '0',
  'limit': '20',
  'site_id': '759010'
}

response = requests.post('http://www.zjmazhang.gov.cn/hdjlpt/letter/pubList', headers=headers, cookies=cookies, data=data, verify=False)
print(response.text)